home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Original Shareware 1.1
/
The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso
/
16
/
asc2com.zip
/
README.DOC
< prev
next >
Wrap
Text File
|
1989-02-09
|
10KB
|
209 lines
Asc2Com.exe
Version 1.10
Copyright 1989
By MorganSoft
All rights reserved.
┌──────────────────────────────────────────────────────────┐
│This program is shareware: For registration information│
│run regisfrm.com. Registration fee is $10.00 and entitles│
│you to use the program in any fashion you deem, is owned│
│by you personally, not limited to any particular computer.│
│MorganSoft assumes no liability for any damages, material│
│or financial that may occur through use of Asc2Com or any│
│programs generated by Asc2Com. │
└──────────────────────────────────────────────────────────┘
SHAREWARE: Please feel free to distribute the program
archive to any all. I only ask that you keep the archive
intact. If you're not familiar with the shareware concept,
it's quite simple: you try this program out and see if it
fits your needs. If it doesn't, you don't use it. If it
does, you fill out the registration form and send it back to
me with the fee. YOU ONLY PAY FOR SOMETHING YOU NEED AND
USE. In any event, I do thank you for giving Asc2Com and
MorganSoft a try.
Programs in the archive are:
Asc2Com.Exe Executable prgm.
Readme.Doc This file.
Readme.Com This file's com clone.
Color.Doc & Color.Com: File detailing color
byte format.
Tab.Doc & Tab.Com Example of tab
expansion.
Regisfrm.Com Program to print the
registration form.
Description:
Asc2Com takes standard ASCII format file, such as this one,
and turns them into executable file that are self-listing.
Output display is command line switchable from default,
direct screen writing (Video adapter types: CGA, EGA, VGA,
MDA.) to standard output (redirectable), enable Wait for
Retrace, or Pause Mode. Colors may be picked from any
combination possible for CGA system and the programs produced
sense if a color type display is available on the host
system. If not, plain vanilla white on black will be used.
Asc2Com Syntax: At the DOS prompt, type the following:
C>Asc2Com myfile.txt /e #
or
C>Asc2Com myfile.txt # /e
or
C>Asc2Com myfile
This produces a file called myfile.com will contains the
contents of myfile.txt, and will list it to the screen.
The options above may be in any order or omitted, and do the
following:
/e: Expand tabs. The default will treat any tabs found
in the source file as characters, displaying them
in direct write modes. This option will expand
them.
#: Color Byte. This option determines the output
colors for the file (default is 1E hex, 31 Decimal,
or a white on blue). (See Color.Doc for a complete
breakdown on all possible color combinations).
Please note that 16 colors are available for the
background color, non-blinking. If the file will
most likely be used with the /s or /p options (see
below), Blinking will become active rather than
intensity AFTER THE FIRST SCROLL. Therefore, you
mostly likely won't want any of the high intensity
colors for the background if redirected output is
desired.
Output File Syntax: At the DOS prompt type the following:
C>myfile
or
C>myfile /s
or
C>myfile /c
or
C>myfile /p
The three options available for programs generated by Asc2Com
do the following:
/s: Disables direct screen writes, and routes all
displays through DOS. Use this method to have
output directed to a serial device or printer.
/c: Wait for Retrace. This option is only needed for
older CGA systems that produce snow when direct
video writes are used. If a generated program
produces snow, use this. Note, however that
displays are slowed down using this.
/p: This option is used when you want the program to
simply list, one direction only, to the screen. By
default, this uses DOS to write to the screen (in
exactly the same manner that the /s option does).
No back paging or scrolling is possible with this
option.
With the /c option or no options, the the 25th line of the
screen will list available active keys, which are:
PgDn UpKey Home
PgUp DnKey End
Which all work very much as you would expect. (No cursor is
visible in the program, and Home takes you to the Top of the
file, End, to the Bottom of the file).
Use: I developed this program for my own use, specifically
for document files I include with the programs I write.
Oftimes, my programs are used by people with very limited
computer experience and the idea of making the documentation
as easy to read as possible was definitely a good one. Since
many relatively inexperienced users often have trouble
loading files into the normal listing programs available, or
into word processors, I came up with this.
Limitations:
Asc2Com will truncate any characters past column 80 in a
file, so if you have anything past that point, I suggest that
you edit the file before using Asc2Com. To be honest, I'm
not exactly sure how big a file can be processed. The
limitations on com files (65278 bytes) applies of course, the
actual size of the ASCII file can be a tad larger and still
be packed into Com size. All Carriage Return/Line Feed
combinations are stripped from the program, so if your file
has a lot of individual lines, you'll gain one byte per line
(I have to use one byte for actual string length). You lose
the length of the assembler program off the top (about 1500
bytes) so I expect the practical maximum length is around
63500 bytes.
Most ASCII characters will be okay (excepting of course ASCII
13--carriage return, 10--linefeed, 28--file separator, 29--
group separator).
Asc2Com was written in Turbo Pascal 5.0 and employs nothing
extraordinary. The program simply takes a typed constant
which is, in actual fact, an com format file for listing
assembler data records, and writes it out as a comfile.
Next, the source file is read in, the lines counted, and
written out byte by byte to that same comfile. Finally, a
Seek statement locates the proper file location and writes
out the overall Line count to the file, then the color byte
and closes it.
Lister.com (the actual listing program incorporated into
each output file) was written in 8088 assembler, compiled
and linked by Turbo Assembler 1.0. Again, nothing out of
the ordinary. The command line switches are very simple:
if the parameters are not exact matches, they DO NOT work. I
only check to see: 1/. That the command tail is longer than
0. If it is, I skip an assumed space byte and check for a
"/". If present, I then check for either a "s", a "p", or
a "c". The program dumps you out if anything else is
there.
T. G. Browning
MorganSoft
2170 Raynor Street SE
Salem, OR 97302
(503)-399-8389
Addendum 1: (No Doubt there'll be many more).
Thanks go to two people who've helped by beta testing this
program for me: Mike Heggen of Uff Dah Systems and Bud
Rasmussen. Mike informs me that his monitor (a Herc clone)
DOES NOT WORK on the default option. Weirdness reigns
because he also informs me that using the "/c" option gives
him a display. I'm at a complete loss to explain that. So,
if you've got a Herc or Herc clone, be warned that you may be
stuck with using either one of the command line switches.
END OF FILE.>>>